//
//  HZTextAttachment.m
//  app
//
//  Created by 刘华舟 on 15/5/19.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "HZTextAttachment.h"

@implementation HZTextAttachment

//I want my emoticon has the same size with line's height

- (CGRect)attachmentBoundsForTextContainer:(NSTextContainer *)textContainer proposedLineFragment:(CGRect)lineFrag glyphPosition:(CGPoint)position characterIndex:(NSUInteger)charIndex NS_AVAILABLE_IOS(7_0)

{
    
    
    return CGRectMake( 0, 0, lineFrag.size.height, lineFrag.size.height);
    
}

@end
